package cn.ming.maven.plugin; /**
 * <pre>
 * 数据库配置依赖版本信息接收类
 * </pre>
 *
 * @author zhuming
 * @version 1.0.0
 * @since 2022-12-13 9:06
 */

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.*;
import com.alibaba.excel.enums.BooleanEnum;
import com.alibaba.excel.enums.poi.HorizontalAlignmentEnum;
import com.alibaba.excel.enums.poi.VerticalAlignmentEnum;

@HeadFontStyle(fontHeightInPoints = 18, bold = BooleanEnum.TRUE, color = 53)
@HeadRowHeight(28)
@HeadStyle(fillForegroundColor = 40, horizontalAlignment = HorizontalAlignmentEnum.CENTER)
@ContentFontStyle(fontHeightInPoints = 15, color = 54)
//@ContentRowHeight(18) 设置固定行高会导致自动换行后部分内容看不到
@ContentStyle(horizontalAlignment = HorizontalAlignmentEnum.CENTER, verticalAlignment = VerticalAlignmentEnum.CENTER, wrapped = BooleanEnum.TRUE)
public class DependenciesVersion {

    /**
     * 依赖包名
     */
    @ExcelProperty(order = 1, value = "依赖包名")
    @ColumnWidth(30)
    private String artifactId;
    /**
     * 当前项目引用版本号
     */
    @ExcelProperty(order = 2, value = "引用版本")
    @ColumnWidth(28)
    private String baseVersion;
    /**
     * 允许最小版本号
     */
    @ExcelProperty(order = 3, value = "允许最小版本号")
    @ColumnWidth(28)
    private String startBaseVersion;
    /**
     * 允许最大版本号
     */
    @ExcelProperty(order = 4, value = "允许最大版本号")
    @ColumnWidth(28)
    private String endBaseVersion;
    /**
     * 禁用版本号
     */
    @ExcelProperty(order = 5, value = "禁用版本号")
    @ColumnWidth(50)
    private String excludeBaseVersions;

    public String getArtifactId() {
        return artifactId;
    }

    public void setArtifactId(String artifactId) {
        this.artifactId = artifactId;
    }

    public String getStartBaseVersion() {
        return startBaseVersion;
    }

    public void setStartBaseVersion(String startBaseVersion) {
        this.startBaseVersion = startBaseVersion;
    }

    public String getEndBaseVersion() {
        return endBaseVersion;
    }

    public void setEndBaseVersion(String endBaseVersion) {
        this.endBaseVersion = endBaseVersion;
    }

    public String getExcludeBaseVersions() {
        return excludeBaseVersions;
    }

    public void setExcludeBaseVersions(String excludeBaseVersions) {
        this.excludeBaseVersions = excludeBaseVersions;
    }

    public String getBaseVersion() {
        return baseVersion;
    }

    public void setBaseVersion(String baseVersion) {
        this.baseVersion = baseVersion;
    }
}
